package lec02.am.ex;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	//	testFun();
		testArray2();

	}

	private static void testFun() {
		long start=System.currentTimeMillis();
		//long end=System.nanoTime();
		Function.solve();
		long end=System.currentTimeMillis();
		double elapse=(end-start)/1000.0;
		System.out.println(String.format("cost %.6f",elapse));
		
	}
	private static void testArray() {
		long start=System.currentTimeMillis();
		//long end=System.nanoTime();
		ArraySolver.solve();
		long end=System.currentTimeMillis();
		double elapse=(end-start)/1000.0;
		System.out.println(String.format("cost %.6f",elapse));
		
	}
	private static void testArray2() {
		long start=System.currentTimeMillis();
		//long end=System.nanoTime();
		ArraySolver2.solve();
		long end=System.currentTimeMillis();
		double elapse=(end-start)/1000.0;
		System.out.println(String.format("cost %.6f",elapse));
		
	}


}
